import request from '@/utils/request'

// 查询户列表
export function listHousehold(query) {
  return request({
    url: '/house/household/list',
    method: 'get',
    params: query
  })
}

// 查询户详细
export function getHousehold(householdId) {
  return request({
    url: '/house/household/' + householdId,
    method: 'get'
  })
}

// 新增户
export function addHousehold(data) {
  return request({
    url: '/house/household',
    method: 'post',
    data: data
  })
}

// 修改户
export function updateHousehold(data) {
  return request({
    url: '/house/household',
    method: 'put',
    data: data
  })
}

// 删除户
export function delHousehold(householdId) {
  return request({
    url: '/house/household/' + householdId,
    method: 'delete'
  })
} 